<template>
  <div class="main-box">
      <img src="../../assets/images/返回.png" alt="" class="back" @click="back">
    <div class="box">
      <div class="item-box" v-for="item in mv" :key="item.id">
        <ItemBox :data="item"></ItemBox>
      </div>
    </div>
  </div>
</template>

<script>
import ItemBox from "./components/ItemBox";
export default {
  name: "Mv",
  components: {
    ItemBox
  },
  mounted() {
    this.axios.get("mv/first").then(res => {

      this.mv = res.data.data;
    });
  },
  data() {
    return {
      mv: []
    };
  },
  methods: {
     back(){
      this.$router.back();
    }  
  },
};
</script>

<style scoped>
.main-box {
  position: absolute;
  z-index: 100;
  min-height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: -webkit-linear-gradient(
    top,
    rgb(240, 125, 125) 0%,
    rgb(225, 237, 195) 100%
  );
}
.box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}
.back{
  width:60px;
  height: 60px;
  margin-left: 25px;
  margin-top:25px;
}
</style>